import { ReqPage } from "@/api/interface/index";
// 用户管理模块
export namespace Role {
  export interface ReqRoleParams extends ReqPage {
    name: string;
  }
  export interface ResRoleList {
    id: number;
    desc: string;
    enable: boolean;
    name: string;
    update_at: string;
  }
  export interface ResRoleDetail extends ResRoleList {
    permission_ids: number[];
    system_ids: number[];
    user_ids: number[];
  }
  export interface ResPermissionList {
    id: number;
    index: number;
    is_menu: boolean;
    key: string;
    name: string;
    parent_id: number;
    path: string;
    children?: ResPermissionList[];
  }
}
